Optimal. Leaf size=41 \[ \frac {2 \sqrt {b} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a}}+x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2498, 269, 211}
\begin {gather*} \frac {2 \sqrt {b} p \text {ArcTan}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a}}+x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 269
Rule 2498
Rubi steps
\begin {align*} \int \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \, dx &=x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+(2 b p) \int \frac {1}{\left (a+\frac {b}{x^2}\right ) x^2} \, dx\\ &=x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+(2 b p) \int \frac {1}{b+a x^2} \, dx\\ &=\frac {2 \sqrt {b} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a}}+x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 43, normalized size = 1.05 \begin {gather*} -\frac {2 \sqrt {b} p \tan ^{-1}\left (\frac {\sqrt {b}}{\sqrt {a} x}\right )}{\sqrt {a}}+x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 38, normalized size = 0.93
method | result | size |
default | \(x \ln \left (c \left (\frac {x^{2} a +b}{x^{2}}\right )^{p}\right )+\frac {2 p b \arctan \left (\frac {a x}{\sqrt {b a}}\right )}{\sqrt {b a}}\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.56, size = 33, normalized size = 0.80 \begin {gather*} \frac {2 \, b p \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{\sqrt {a b}} + x \log \left ({\left (a + \frac {b}{x^{2}}\right )}^{p} c\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 107, normalized size = 2.61 \begin {gather*} \left [p x \log \left (\frac {a x^{2} + b}{x^{2}}\right ) + p \sqrt {-\frac {b}{a}} \log \left (\frac {a x^{2} + 2 \, a x \sqrt {-\frac {b}{a}} - b}{a x^{2} + b}\right ) + x \log \left (c\right ), p x \log \left (\frac {a x^{2} + b}{x^{2}}\right ) + 2 \, p \sqrt {\frac {b}{a}} \arctan \left (\frac {a x \sqrt {\frac {b}{a}}}{b}\right ) + x \log \left (c\right )\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 95 vs.
\(2 (39) = 78\).
time = 3.79, size = 95, normalized size = 2.32 \begin {gather*} \begin {cases} x \log {\left (0^{p} c \right )} & \text {for}\: a = 0 \wedge b = 0 \\2 p x + x \log {\left (c \left (\frac {b}{x^{2}}\right )^{p} \right )} & \text {for}\: a = 0 \\x \log {\left (a^{p} c \right )} & \text {for}\: b = 0 \\x \log {\left (c \left (a + \frac {b}{x^{2}}\right )^{p} \right )} + \frac {b p \log {\left (x - \sqrt {- \frac {b}{a}} \right )}}{a \sqrt {- \frac {b}{a}}} - \frac {b p \log {\left (x + \sqrt {- \frac {b}{a}} \right )}}{a \sqrt {- \frac {b}{a}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.15, size = 42, normalized size = 1.02 \begin {gather*} p x \log \left (a x^{2} + b\right ) - p x \log \left (x^{2}\right ) + \frac {2 \, b p \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{\sqrt {a b}} + x \log \left (c\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.11, size = 33, normalized size = 0.80 \begin {gather*} x\,\ln \left (c\,{\left (a+\frac {b}{x^2}\right )}^p\right )+\frac {2\,\sqrt {b}\,p\,\mathrm {atan}\left (\frac {\sqrt {a}\,x}{\sqrt {b}}\right )}{\sqrt {a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________